Chris Pollett >
Old Classses >
CS174
( Print
View )
Student Corner:
[Grades Sec1]
[Submit Sec1]
[Lecture Notes]
[Discussion Board]
Course Info:
[Texts & Links]
[Description]
[Course Outcomes]
[Outcomes Matrix]
[Course Schedule]
[Grading]
[Requirements/HW/Quizzes]
[Class Protocols]
[Exam Info]
[Regrades]
[University Policies]
[Announcements]
HW Assignments:
[Hw1]
[Hw2]
[Hw3]
[Hw4]
[Hw5]
[Quizzes]
Practice Exams:
[Midterm]
[Final]
|
CS174 Spring 2016Practice Final
- Write a short Javascript function which takes an id of a div tag as argument
and adds a select dropdown to the inner html of this tag with 101 items: Select a Page, 00.html, 01.html, 02.html, 03.html... such that when an item other than the Select a Page is chosen the browser goes to that page.
- Briefly explain how one makes (a) constructor functions in Javascript, (b) how one can add a method to a Javascript object, (c) what the prototype property of an object is.
- Write a Javascript function which when run attaches a DOM 2 click event handler to every div tag on the current document that creates an alert with the contents of the div tag clicked.
- Give a small example DTD which defines at least one element, attribute list, and entity. Rewrite this DTD as an XML Schema. Give an example XML document that conforms to your DTD.
- Explain how a webservice might be defined using REST. Give an example of how to request a web page using an XMLHttpRequest object and then making use of the response.
- Briefly explain how each of the following web attacks works: XSS, CSRF, Click Jacking.
- Describe the process of creating a binary gettext .mo file. How would this file be used within a web app?
- Write a short program that demonstrate how to use memcache within PHP.
- Give a short code snippet to display a video within an HTML page.
- Briefly define and give an example of the following terms: (a) link-farm, (b) spider-trap, (c) url rewriting.
|